From: Zeeshan Ali (Khattak) Date: Sat, 9 Aug 2014 15:38:20 +0000 (+0100) Subject: location: Only show menu when geolocation is in use X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2234 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b624a34b8be027bf08962782bbea7369a832815;p=gnome-shell.git location: Only show menu when geolocation is in use Users can now toggle geolocation off/on from privacy panel of gnome-control-center so we don't need to clutter the menu with a settings that most users won't touch most of the time. https://bugzilla.gnome.org/show_bug.cgi?id=731122 --- diff --git a/js/ui/status/location.js b/js/ui/status/location.js index 052f77cc6..c6694d1a0 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -96,10 +96,12 @@ const Indicator = new Lang.Class({ _syncIndicator: function() { if (this._proxy == null) { this._indicator.visible = false; + this._item.actor.visible = false; return; } this._indicator.visible = this._proxy.InUse; + this._item.actor.visible = this._indicator.visible; this._updateMenuLabels(); },